package com.igeek.domain;

public class CartItem {
    private Product product;
    //购买的数量
    private int count;
    //小计
    private double subTotal;

    public CartItem() {
    }

    public CartItem(Product product, int count, double subTotal) {
        this.product = product;
        this.count = count;
        this.subTotal = subTotal;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(double subTotal) {
        this.subTotal = subTotal;
    }
}
